<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"jasonjian.top","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"hide","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="rsvp学习笔记">
<meta property="og:type" content="article">
<meta property="og:title" content="rsvp学习笔记">
<meta property="og:url" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/index.html">
<meta property="og:site_name" content="蹇顺的中文博客">
<meta property="og:description" content="rsvp学习笔记">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPathObject.jpg">
<meta property="og:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPathObject2.jpg">
<meta property="og:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPath.png">
<meta property="og:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpResvObject.jpg">
<meta property="og:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpResv.jpg">
<meta property="article:published_time" content="2021-05-05T12:44:39.000Z">
<meta property="article:modified_time" content="2021-05-07T11:24:32.506Z">
<meta property="article:author" content="Jason Jian">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPathObject.jpg">

<link rel="canonical" href="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'en'
  };
</script>

  <title>rsvp学习笔记 | 蹇顺的中文博客</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">蹇顺的中文博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
    <link itemprop="mainEntityOfPage" href="http://jasonjian.top/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Jason Jian">
      <meta itemprop="description" content="用写作梳理混乱的思想">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="蹇顺的中文博客">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          rsvp学习笔记
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2021-05-05 20:44:39" itemprop="dateCreated datePublished" datetime="2021-05-05T20:44:39+08:00">2021-05-05</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2021-05-07 19:24:32" itemprop="dateModified" datetime="2021-05-07T19:24:32+08:00">2021-05-07</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>rsvp学习笔记</p>
<span id="more"></span>
<h1 id="基本概念"><a href="#基本概念" class="headerlink" title="基本概念"></a>基本概念</h1><h2 id="消息类型"><a href="#消息类型" class="headerlink" title="消息类型"></a>消息类型</h2><p>Rsvp 协议中最重要的两种消息 path 和reserve。</p>
<h2 id="Path"><a href="#Path" class="headerlink" title="Path"></a>Path</h2><h3 id="基本功能"><a href="#基本功能" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>Path消息是RSVP-TE的CR-LSP建立请求消息</li>
<li>由入节点（Ingress）发送</li>
<li>请求与出节点（Egress）建立CR-LSP</li>
<li>下游路径上除出节点外的其他每个节点都继续向下游节点转发这个消息<h3 id="包含的对象"><a href="#包含的对象" class="headerlink" title="包含的对象"></a>包含的对象</h3></li>
<li>Object</li>
<li>SESSION</li>
<li>RSVP_HOP</li>
<li>TIME_VALUE</li>
<li>SENDER_TEMPLATE</li>
<li>SENDER_TSPEC</li>
<li>LABEL_REQUEST</li>
<li>ADSPEC</li>
<li>EXPLICIT_ROUTE</li>
<li>RECORD_ROUTE</li>
<li>SESSION_ATTRIBUTE<img src="/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPathObject.jpg" class="" title="rsvp_path_object">
<img src="/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPathObject2.jpg" class="" title="rsvp_path_object"></li>
</ul>
<h3 id="报文截图"><a href="#报文截图" class="headerlink" title="报文截图"></a>报文截图</h3><img src="/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpPath.png" class="" title="rsvp_path_message">
<hr>
<h2 id="Resv"><a href="#Resv" class="headerlink" title="Resv"></a>Resv</h2><h3 id="基本功能-1"><a href="#基本功能-1" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>资源预留请求消息</li>
<li>是对Path消息的应答</li>
<li>它是由出节点发送，携带资源预留信息</li>
<li>逆着原来Path消息的路径逐跳向上游转发，直到入节点</li>
<li>为入节点请求建立的CR-LSP分配标签</li>
<li>对于本地设备来说是入标签，对于上游设备来说是出标签</li>
<li>并沿途向上游节点提出资源预留请求<h3 id="包含的对象-1"><a href="#包含的对象-1" class="headerlink" title="包含的对象"></a>包含的对象</h3></li>
<li>INTEGRITY</li>
<li>SESSION</li>
<li>RSVP_HOP</li>
<li>TIME_VALUE</li>
<li>STYLE</li>
<li>FLOW_SPEC</li>
<li>FILTER_SPEC</li>
<li>RECORD_ROUTE</li>
<li>LABEL</li>
<li>RESV_CONFIRM<img src="/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpResvObject.jpg" class="" title="rsvp_reserve_object">
<h3 id="报文截图-1"><a href="#报文截图-1" class="headerlink" title="报文截图"></a>报文截图</h3><img src="/2021/05/05/rsvp%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/RsvpResv.jpg" class="" title="rsvp_reserve_message"></li>
</ul>
<hr>
<h2 id="PathErr"><a href="#PathErr" class="headerlink" title="PathErr"></a>PathErr</h2><h3 id="基本功能-2"><a href="#基本功能-2" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>处理Path消息时发生错误，向上游发送，直到入节点</li>
<li>收到PathErr消息时不改变节点状态</li>
<li>只会继续向上游节点转发该PathErr消息</li>
</ul>
<hr>
<h2 id="ResvErr"><a href="#ResvErr" class="headerlink" title="ResvErr"></a>ResvErr</h2><h3 id="基本功能-3"><a href="#基本功能-3" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>处理Resv消息时发生错误，向下游发送，直到出节点。</li>
<li>收到消息的节点不修改本身的状态，只逐跳转发给下游</li>
<li>在出节点上根据错误类型和具体错误内容进行处理。</li>
<li>如错误是由记录路径导致超MTU，则向入方向发PathErr</li>
<li>否则发送Resv消息，拆除CR-LSP，释放资源和预留标签</li>
</ul>
<hr>
<h2 id="PathTear"><a href="#PathTear" class="headerlink" title="PathTear"></a>PathTear</h2><h3 id="基本功能-4"><a href="#基本功能-4" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>由入节点发送，用来沿途删除节点的路径状态信息，直到出节点</li>
<li>其作用与Path消息相反</li>
</ul>
<hr>
<h2 id="ResvTear"><a href="#ResvTear" class="headerlink" title="ResvTear"></a>ResvTear</h2><h3 id="基本功能-5"><a href="#基本功能-5" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>由出节点发送，用来沿途删除节点的预留状态，直到入节点</li>
<li>作用与Resv消息相反</li>
</ul>
<hr>
<h2 id="ResvConf"><a href="#ResvConf" class="headerlink" title="ResvConf"></a>ResvConf</h2><h3 id="基本功能-6"><a href="#基本功能-6" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>由入节点发送，向下游逐跳转发，直到出节点</li>
<li>对出节点发出的资源预留请求进行确认</li>
<li>仅当出节点发出的 Resv消息中包含 RESV_CONFIRM 对象时才会发送</li>
</ul>
<hr>
<h2 id="Srefresh"><a href="#Srefresh" class="headerlink" title="Srefresh"></a>Srefresh</h2><h3 id="基本功能-7"><a href="#基本功能-7" class="headerlink" title="基本功能"></a>基本功能</h3><ul>
<li>用来刷新RSVP状态</li>
<li>每个节点都可以发送</li>
</ul>
<hr>
<h1 id="消息流程"><a href="#消息流程" class="headerlink" title="消息流程"></a>消息流程</h1><h1 id="FAQ"><a href="#FAQ" class="headerlink" title="FAQ"></a>FAQ</h1>
    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item"></div>
      <div class="post-nav-item">
    <a href="/2021/05/07/%E5%84%BF%E7%AB%A5%E6%95%99%E8%82%B2%E6%91%98%E8%A6%81/" rel="next" title="儿童教育摘要">
      儿童教育摘要 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5"><span class="nav-number">1.</span> <span class="nav-text">基本概念</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B"><span class="nav-number">1.1.</span> <span class="nav-text">消息类型</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Path"><span class="nav-number">1.2.</span> <span class="nav-text">Path</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD"><span class="nav-number">1.2.1.</span> <span class="nav-text">基本功能</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8C%85%E5%90%AB%E7%9A%84%E5%AF%B9%E8%B1%A1"><span class="nav-number">1.2.2.</span> <span class="nav-text">包含的对象</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%8A%A5%E6%96%87%E6%88%AA%E5%9B%BE"><span class="nav-number">1.2.3.</span> <span class="nav-text">报文截图</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Resv"><span class="nav-number">1.3.</span> <span class="nav-text">Resv</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-1"><span class="nav-number">1.3.1.</span> <span class="nav-text">基本功能</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8C%85%E5%90%AB%E7%9A%84%E5%AF%B9%E8%B1%A1-1"><span class="nav-number">1.3.2.</span> <span class="nav-text">包含的对象</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%8A%A5%E6%96%87%E6%88%AA%E5%9B%BE-1"><span class="nav-number">1.3.3.</span> <span class="nav-text">报文截图</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#PathErr"><span class="nav-number">1.4.</span> <span class="nav-text">PathErr</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-2"><span class="nav-number">1.4.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#ResvErr"><span class="nav-number">1.5.</span> <span class="nav-text">ResvErr</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-3"><span class="nav-number">1.5.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#PathTear"><span class="nav-number">1.6.</span> <span class="nav-text">PathTear</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-4"><span class="nav-number">1.6.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#ResvTear"><span class="nav-number">1.7.</span> <span class="nav-text">ResvTear</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-5"><span class="nav-number">1.7.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#ResvConf"><span class="nav-number">1.8.</span> <span class="nav-text">ResvConf</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-6"><span class="nav-number">1.8.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Srefresh"><span class="nav-number">1.9.</span> <span class="nav-text">Srefresh</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9F%BA%E6%9C%AC%E5%8A%9F%E8%83%BD-7"><span class="nav-number">1.9.1.</span> <span class="nav-text">基本功能</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E6%B6%88%E6%81%AF%E6%B5%81%E7%A8%8B"><span class="nav-number">2.</span> <span class="nav-text">消息流程</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#FAQ"><span class="nav-number">3.</span> <span class="nav-text">FAQ</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Jason Jian</p>
  <div class="site-description" itemprop="description">用写作梳理混乱的思想</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">6</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Jason Jian</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
